package TwoDay;
//6.循环嵌套  for
//     *******  7
//      *****  5
//       ***  3
//        *   1
public class StudyFor6 {
    public static void main(String[] args) {
        int a,b;
        for (b=0;b<4;b++){//0  1  2
            for (a=0;a<3-b;a++){//3 2 1
                System.out.print(" ");
            }
            for (a=0; a<2* b + 1 ;a++ ){//1   3  5
                System.out.print("*");
            }
            System.out.println();
        }
        int i, j;
        for (j = 0; j < 4; j++) {
            for (i = 0; i < j; i++) {
                System.out.print(" ");
            }
            for (i = 0; i < 7 - 2 * j; i++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
